/*导航栏样式*/
.header_container {
    width: 90%;
    max-width: 1200px;
    /*min-height: 442px;*/
    margin: 0 auto;
}

header {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.user-actions {
    display: flex;
    align-items: center;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-login {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    margin-right: 10px;
}

.btn-login:hover {
    background-color: white;
    color: #6e8efb;
}

.btn-signup {
    background-color: white;
    color: #6e8efb;
}

.btn-signup:hover {
    background-color: #f0f0f0;
}

/*下拉框样式*/
.user-menu {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.header_user-avatar {
    display: flex;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.header_user-avatar:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
    position: absolute;
    top: 85px;
    right: 0;
    width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-radius: 3px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f2f6;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #f8f9fa;
    padding-left: 25px;
}

.menu-item.logout:hover {
    background: #fff5f5;
    color: #e74c3c;
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a11cb;
}

.menu-text {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

@media (max-width: 480px) {
    .dropdown-menu {
        width: 200px;
    }

}